package com.dao.user;

import com.enitiy.User;
import com.utils.page.Page;
import sun.security.krb5.internal.tools.Klist;

import java.sql.SQLException;
import java.util.List;

/**
 * 创建作者 ：MySunshine
 * 创建时间 2022/10/24 11:08
 * 项目名称 SHUSHAN
 */
public interface UserDao {
    //登录
    User UserLogin(int uNum ,String pwd ) throws SQLException;
    //注册
    boolean  UserReg(User user) throws SQLException;
    //用户注册 通过账号上传头像
    boolean  UserGetImgByNum(int num,String img) throws SQLException;
    //用户查询
    List<User> UserSelectAll(Page p) throws SQLException;
    //查询用户的条数
    int UserSelectAllNum(Page p) throws SQLException;
    // 根据账号删除用户
    boolean UserDeleteByNum(int num) throws SQLException;
    // 根据账号修改用户
    boolean UserUpdateByNum(User u) throws SQLException;
    //用num查询用户
    User UserSelectByNum(int Num) throws SQLException;
}
